<%-- 
    Document   : home
    Created on : Jul 6, 2012, 11:03:14 AM
    Author     : Kyros
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Main page</title>
        <link href="css/Main.css" rel="stylesheet" type="text/css" />
    </head>

    <body>	

        <table width="1000" border="0" align="center">
            <tr>
                <td colspan="3" align="right">
                    <c:choose >
                        <c:when test="${sessionScope.USERNAME!=null}">
                            Welcome, ${sessionScope.USERNAME},         
                            <c:url var="Logout" value="Controller">
                                <c:param name="action" value="Logout"/>
                            </c:url>
                            <a href="${Logout}" class="Sign">Logout</a><br/><br/>
                        </c:when>
                        <c:otherwise>
                            <c:url var="login" value="login.jsp"></c:url>
                            <a href="${login}" class="Sign">Sign in</a>
                            <c:url var="register" value="register.jsp"></c:url>
                            <a href="${register}" class="Sign">Sign up</a><br/>
                        </c:otherwise>
                    </c:choose>
                </td>
            </tr>

            <tr>
                <td><img src="images/logo-job-portal.png" alt="" width="269" height="56" /></td>
                <td colspan="2">
                    <table border="0" id="wrap">
                        <tr id="menu">
                            <td width="100"></td>
                            <td class="shadow"><a href="home.jsp">HomePage</a></td>
                            <td width="10"></td>
                            <td class="shadow"><a href="aboutUs.jsp">About Us</a></td>
                            <td width="10"></td>
                            <td class="shadow"><a href="help.jsp">Help</a></td>
                            <td width="10"></td>
                            <c:if test="${sessionScope.TYPE!=null}">
                                <c:choose >
                                    <c:when test="${sessionScope.TYPE==1}">
                                        <td class="shadow"><a href="employerPage.jsp">Employer</a></td>
                                        <td width="10"></td>
                                    </c:when>
                                    <c:otherwise>
                                        <td class="shadow"><a href="jobseekerPage.jsp">Job Seeker</a></td>
                                        <td width="10"></td>
                                    </c:otherwise>
                                </c:choose>
                            </c:if>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td colspan="3" align="center"><img src="images/bigpicture.jpg" width="1049" height="303" /></td>
            </tr>

            <tr><td colspan="3"><table width="600" border="0" align="center"><tr><td></td><td></td><td></td></tr></table></td></tr>
            <!--<tr>
                  <td colspan="3" align="center">
                  <table width="600" border="0" align="center">
                          <tr>
                          <td id="search" width="78"><label>Search</label></td>
                          <td width="272"><input type="search" name="txtSearch" size="30" placeholder="Input your search here" /></td>
                          <td width="236"><input name="btnSearch" type="button" value="  Search  " /></td>
                      </tr>
                  </table>   
              </td>
            </tr>	-->
            <tr>
                <td><img src="images/left.png" width="208" height="975" /></td>
                <td width="100%">

                    <c:import var="xml" url="xml/homepage.xml"/>
                    <c:import var="xslt" url="xsl/homepage.xsl"/>
                    <x:transform xml="${xml}" xslt="${xslt}"/>


                </td>
                <td width="208"><img src="images/right.png" width="208" height="975" /></td>
            </tr>            
        </table>
    </body>
</html>

